TEMPLATE = app
CONFIG += console c++17
CONFIG -= app_bundle
CONFIG -= qt

SOURCES += \
	uhd_the_ark.cpp


isX86:equals(QMAKE_HOST.arch, *x86*) | equals(QMAKE_HOST.arch, *i?86*) | equals(QMAKE_HOST.arch, *amd64*) | equals(QMAKE_HOST.arch, *x86_64*) {
message("x86")
QMAKE_CXXFLAGS_RELEASE += -fopenmp -O3 -fopenmp  -mavx2
} else {
message("not x86")
QMAKE_CXXFLAGS_RELEASE += -fopenmp -O3 -fopenmp
}

win32{
	INCLUDEPATH +="$(UHD_PKG_PATH)/include"
	LIBS += -L"$(UHD_PKG_PATH)/lib"
	INCLUDEPATH +="$$PWD/../3rdlibs/fftw"
	contains(QT_ARCH, i386) {
	LIBS+=-L"$$PWD/../3rdlibs/fftw/x86" -llibfftw3-3
	} else {
	LIBS+=-L"$$PWD/../3rdlibs/fftw/x64" -llibfftw3-3
	}
}else {
LIBS+= -lfftw3 -lboost_system
}

LIBS += -luhd -lpthread -lgomp
